import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
      {
        path: '/',
        redirect: '/dashboard'
      },
      {
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [
                {
                    path: '/dashboard',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/chart5.vue'),
                    meta: { title: '系统首页' }
                },
                {
                  path: '/chart5',
                  name: 'chart5',
                  component: () => import('../components/page/chart5.vue'),
                },
                {
                    path: '/high250',
                    name: 'high250',
                    component: () => import('../components/page/high250.vue'),
                },
                {
                  path: '/bankuaimt',
                  name: 'bankuaimt',
                  component: () => import('../components/page/bankuaimt.vue'),
                },
                {
                  path: '/chartLimit',
                  name: 'chartLimit',
                  component: () => import('../components/page/chartLimit.vue'),
                },
                {
                  path: '/chartSellPut',
                  name: 'chartSellPut',
                  component: () => import('../components/page/ussellput.vue'),
                },
                {
                  path: '/account',
                  name: 'account',
                  component: () => import('../components/page/account.vue'),
                }
            ]
      },
        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
})

// ,
//       {
//           path: '/',
//           name: 'chart5',
//           component: () => import('../components/page/chart5.vue'),
//           redirect:"/chart5",
//           children:[
            
//           ]
//         },
//         {
//           path: '/high250',
//           name: 'high250',
//           component: () => import('../components/page/high250.vue'),
//         },
        
//         {
//           path: '/login',
//           component: () => import('../components/page/Login.vue'),
//           meta: { title: '登录' }
//         }